package com.study.run;

import com.study.aop.LogAspect;
import com.study.config.AopConfig;
import com.study.config.IocConfig;
import com.study.entity.AopTest;
import com.study.entity.User;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Kevin Liu
 * @date 2020/8/18 上午11:02
 */
public class AopApplication {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AopConfig.class);
		final AopTest aopTest = applicationContext.getBean("aopTest", AopTest.class);
		aopTest.sayHello("hello");
	}
}
